<?php 
class CBasePages extends CBaseEosPlural {

	public function __construct() {		
		return true;
	}
	
	public static function fetchPages( $objDatabase ) {
		$strSql = 'SELECT * FROM `pages`';
		return parent::fetchResults( $strSql, 'CPage', $objDatabase );
	}
	
	public static function fetchPageById( $intId, $objDatabase ) {
		$strSql = 'SELECT 
						p.* 
					FROM 
						`pages` AS p 
					WHERE 
						p.`id` = ' . $intId;
		return parent::fetchResult( $strSql, 'CPage', $objDatabase );
	}
		
}
?>